package com.sinochem.yunlian.ship.api.vo.uc;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class AddJoinCompanyVo {

	/**
	 * 管理员联系电话
	 */
//	@NotEmpty
//	@Size(min = 11, max = 11)
//	@Pattern(regexp = "^[1][2,3,4,5,7,8][0-9]{9}$", message = "请输入正确的手机号")
	private String adminPhone;

	/**
	 * 权限列表
	 */
	private List<Long> roleIds;

	/**
	 * 申请加入的用户名
	 */
	@NotEmpty(message = "用户名不能为空")
	@Length(max = 30, message = "最多输入30位字符")
	private String userName;

	@NotNull(message = "加入公司的Id不能为空")
	private Long companyId;




}
